<div class="title-menu">
    <h2>Bảng banner</h2>
</div>
<nav class="bonus">
     <a href="<?php echo base_url("backend/banner/add");?>">Thêm banner</a> | <a href="<?php echo base_url("backend/banner/deleteall");?>" onClick="return confirm('Xác nhận xóa')">Xóa tất cả</a>
</nav>
<article>
    <?php
    if(isset($parcat) && count($parcat)){
    ?>
    <table cellspacing="0" cellpadding="5" border="1">
        <tr>
            <th>ID</th>
            <th>Hình ảnh</th>
            <th>Tùy chọn</th>
        </tr>
        <?php        
            foreach ($parcat as $pcat){
        ?>
        <tr>
            <td><?php echo $pcat->id;?></td>
            <td><img src="<?php echo base_url($pcat->img); ?>" width="198" height="60"></td>
            <td><a href="<?php echo base_url("backend/banner/update").'/'.$pcat->id;?>">Sửa</a> | <a href="<?php echo base_url("backend/banner/delete").'/'.$pcat->id;?>" onClick="return confirm('Xác nhận xóa')">Xóa</a></td>            
        </tr>
            <?php            
            }
        ?>
    </table>
    <?php
    }
    ?>
</article>